package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Dish implements Serializable {
    private static final long serialVersionUID = 1L; //序列化标识符，确保在不同编译器上反序列化的uid相等。
    private Long id;
    private String name;
    private Long categoryId;
    private BigDecimal price;
    private String code;
    private String image;
    private String des;    //数据库的字段名字一定不能用关键字。
    private Integer status;
  //  private Integer sort;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTable;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime uptateTable;
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
   // private Integer isDelete;
}
